<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>
<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<{$osadmin_action_alert}>
<{$osadmin_quick_note}>

<form class="form_search" action="" method="GET" style="margin-bottom:0px">
    <div style="float:left;margin-right:5px">
        <label> 选择起始时间 </label>
        <input type="text" id="start_date" name="start_date" value="<{$_GET.start_date}>" placeholder="起始时间"
               required="true">
    </div>
    <div style="float:left;margin-right:5px">
        <label>选择结束时间</label>
        <input type="text" id="end_date" name="end_date" value="<{$_GET.end_date}>" placeholder="结束时间" required="true">
    </div>
    <div style="float:left;margin-right:5px">
        <label>查询所有用户请留空</label>
        <input type="text" name="user_name" value="<{$_GET.user_name}>" placeholder="输入用户名">
        <input type="hidden" name="search" value="1">
    </div>
    <div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
        <button type="submit" class="btn btn-primary">查询</button>
    </div>
    <div style="clear:both;"></div>
</form>

<form class="form_search" action="pay_log_download.php" method="GET" style="margin-bottom:0px">
    <div style="float:left;margin-right:5px">
        <label> 选择起始时间 </label>
        <input type="text" id="start_date1" name="start_date" value="<{$_GET.start_date}>" placeholder="起始时间"
               required="true">
    </div>
    <div style="float:left;margin-right:5px">
        <label>选择结束时间</label>
        <input type="text" id="end_date1" name="end_date" value="<{$_GET.end_date}>" placeholder="结束时间" required="true">
    </div>
    <div style="float:left;margin-right:5px">
        <label>查询所有用户请留空</label>
        <input type="text" name="user_name" value="<{$_GET.user_name}>" placeholder="输入购买用户名">
        <input type="hidden" name="dn" value="1">
    </div>
    <div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
        <button type="submit" class="btn btn-primary">下载数据表</button>
    </div>
    <div style="clear:both;"></div>
</form>

<div class="block">
    <a href="#page-stats" class="block-heading" data-toggle="collapse">支付查询列表</a>

    <{if !empty($payLogs)}>
    <div id="page-stats" class="block-body collapse in">
        <{$page_html}>
        <table class="table table-striped">
            <thead>
            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">订单号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">商户号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">交易号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">货币类型</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">订单金额</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">账单用户</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">账单邮箱</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="10%">账单地址</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">账单城市</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="5%">账单电话</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" width="10%">信用卡号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">产品信息</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">支付返回码</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">支付返回状态</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">支付返回信息</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">交易网址</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">客户IP</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">浏览器用户代理</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">浏览器语言</th>
            </tr>
            </thead>
            <tbody>
            <{foreach name=order from=$payLogs item=order_info}>
                <tr style="background:#fff;">
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.OrderID}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.MerchantID}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.TransNo}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.Currency}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.Amount}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.BName}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.BEmail}>
                    </td>

                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.BAddress}>
                    </td>

                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.BCity}>
                    </td>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.BPhone}>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <{$order_info.CardNumber}>
                    </td>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.Products}>
                    </td>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.RetCode}>
                    </td>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.RetStatus}>
                    </td>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.RetMsg}>
                    </td>
                    <td style="background:#fff;color:blue;font-size: 14px;font-weight: normal;">
                        <{$order_info.URL}>
                    </td>

                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.IP}>
                    </td>

                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.UserAgent}>
                    </td>

                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <{$order_info.AcceptLanguage}>
                    </td>

                </tr>
                <{/foreach}>

            </tbody>
        </table>
        <{$page_html}>
    </div>
    <{/if}>
</div>


<script>
    $(function () {
        var date = $("#start_date");
        date.datepicker({dateFormat: "yy-mm-dd"});
        date.datepicker("option", "firstDay", 1);

        var date1 = $("#start_date1");
        date1.datepicker({dateFormat: "yy-mm-dd"});
        date1.datepicker("option", "firstDay", 1);
    });
    $(function () {
        var date = $("#end_date");
        date.datepicker({dateFormat: "yy-mm-dd"});
        date.datepicker("option", "firstDay", 1);

        var date1 = $("#end_date1");
        date1.datepicker({dateFormat: "yy-mm-dd"});
        date1.datepicker("option", "firstDay", 1);
    });
</script>

<{$osadmin_action_confirm}>
<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<{include file="footer.tpl" }>